home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
- F I L E T E S T 0.01 Beta
-
-
- 01/03/92
-
-
- By: Keith Luken
-
-
- PHANTASM BBS (908) 291-4134 USR DUAL V.32bis
- (908) 291-2302 USR DUAL V.32
-
-
-
- This is a real simple utility that will return a DOS Errorlevel to
- correspond to the filename extension of the filename passed to
- FILETEST.EXE. This utility is a quick and dirty test that does NOT
- verify that the filename you pass is valid. It is assumed that
- whatever program or function calls this will have taken care of that.
- This program is by far the most extensive I have seen. Most test for
- the common compression extensions and possible .GIF. This utility tests
- for many more. It can be used to automate the placement of files based
- on their extension. While I'm sure that this release works on the
- extensions I have listed, I will add any extensions anyone would like and
- after a few months I'll release a finalized 1.00 version. Feel free to
- contact me with any extensions you would like added. I think I have covered
- a majority of extensions that most of your run into. This utility
- can be great for testing uploads on a BBS.
-
-
- *Remember when testing DOS Errorlevels in a batch file to test highest
- numbers first!!
-
-
- Below is a list of the extensions tested for and the errorlevel they return:
-
- CASE "GIF"
- DOS Errorlevel = 1
- CASE "ZIP"
- DOS Errorlevel = 2
- CASE "ARC"
- DOS Errorlevel = 3
- CASE "ARJ"
- DOS Errorlevel = 4
- CASE "PAK"
- DOS Errorlevel = 5
- CASE "ZOO"
- DOS Errorlevel = 6
- CASE "LZH"
- DOS Errorlevel = 7
- CASE "DWC"
- DOS Errorlevel = 8
- CASE "BAT"
- DOS Errorlevel = 9
- CASE "COM"
- DOS Errorlevel = 10
- CASE "EXE"
- DOS Errorlevel = 11
- CASE "BAK"
- DOS Errorlevel = 12
- CASE "TXT"
- DOS Errorlevel = 13
- CASE "DOC"
- DOS Errorlevel = 14
- CASE "BAS"
- DOS Errorlevel = 15
- CASE "C"
- DOS Errorlevel = 16
- CASE "H"
- DOS Errorlevel = 17
- CASE "BI"
- DOS Errorlevel = 18
- CASE "INC"
- DOS Errorlevel = 19
- CASE "PAS"
- DOS Errorlevel = 20
- CASE "ASM"
- DOS Errorlevel = 21
- CASE ELSE
- DOS Errorlevel = 90
-
- DOS Errorlevel = 98 'No Extension found
-
- DOS Errorlevel = 99 'No Filename Given found
-
-